import request from '../../utils/request'
import { requestString } from '../../utils/request'

export async function query(data) {
	return request(apiPath.mc + "/api/chargeTemplate", {
		method: 'get',
		data
	});
}



export async function queryAll(data) {
    return request(apiPath.mc + "/api/chargeTemplate/all", {
        method: 'get',
        data
    });
}

export async function get({ id }) {
	return request(apiPath.mc + "/api/chargeTemplate/" + id, {
		method: 'get'
	});
}

export async function add(data) {
	return requestString(apiPath.mc + "/api/chargeTemplate", {
		method: 'post',
		data
	});
}

export async function update(data) {
	return requestString(apiPath.mc + "/api/chargeTemplate", {
		method: 'put',
		data
	});
}

export async function remove({ id }) {
	return request(apiPath.mc + "/api/chargeTemplate/" + id, {
		method: 'delete'
	});
}
